/*
 * Copyright (c) 2020-2030 Sishun.Co.Ltd. All Rights Reserved.
 */
package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;

import java.util.logging.Logger;

/**
 * @author ：lvfeilong
 * @version ：
 * @description ：
 * @program ：xxl-job
 * @date ：Created in 2021/4/25 15:47
 */
@Slf4j
public class DemoGlueJobHandler extends IJobHandler {

    private static transient Logger logger = (Logger) LoggerFactory.getLogger(DemoGlueJobHandler.class);

    @Override
    public ReturnT<String> execute(String param) throws Exception {
        logger.info("XXL-JOB HELLO WORLD");
        log.error("SUCCESS");
        return ReturnT.SUCCESS;
    }
}